import request from "@/utils/request";

// 新增
export function JourneyFlowInfo(data, method) {
  return request({
    url: "/scrm-admin/admin/JourneyFlowInfo",
    method,
    data,
  });
}

// 查询
export function list(params) {
  return request({
    url: "/scrm-admin/admin/JourneyFlowInfo/list",
    method: "get",
    params,
  });
}

// 详情
export function flowDetail(params) {
  return request({
    url: `/scrm-admin/admin/JourneyFlowInfo/${params}`,
    method: "get",
  });
}

// 删除
export function deleteJourney(params) {
  return request({
    url: `/scrm-admin/admin/JourneyFlowInfo/${params}`,
    method: "delete",
  });
}
